MultiplyByThreePipe.handle   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
1
export const addOnePipe: (value: number) => Promise<number> = async (value) => {
2
    return value + 1;  // Add 1 and return the result
3
};
4
5
export const multiplyByTwoPipe: (value: number) => Promise<number> = async (value) => {
6
    return value * 2;  // Multiply by 2 and return the result
7
};
8
9
export class MultiplyByThreePipe {
10
    async handle(value: number): Promise<number> {
11
        return value * 3;  // Multiply by 3 and return the result
12
    }
13
}
14